﻿<!-- Modal -->
<div class="modal fade" id="Modal_Sale" tabindex="-1" role="dialog" aria-labelledby="Modal_Sale" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title"><span class="glyphicon glyphicon-usd text-success"></span>&nbsp;销售商品：<span class="text-success"></span></h4>

            </div>
            <div class="modal-body">
                <p>
                    <label for="SaleGoodName">销售品名:&nbsp;&nbsp;</label><span class="text-danger"></span>
                </p>
                <p>
                    <label for="SaleGoodPrice">销售单价:&nbsp;&nbsp;</label><span class="text-danger"></span>
                </p>
                <p>
                    <label for="SaleGoodQuntity">目前货架数量:&nbsp;&nbsp;</label><span class="text-danger"></span>
                </p>
                <div class="form-group">
                    <form action="#" role="form">
                        <input name="GoodsID" type="hidden" />
                        <div class="form-group">
                            <label for="Sale_Quntity">销售数量:</label>
                            <div class="input-group">
                                <input type="text" name="Sale_Quntity" class="form-control" placeholder="销售数量">
                                <span class="input-group-addon"></span>
                            </div>
                            <div class="input-group">
                                <input type="checkbox"> 是否兑奖
                            </div>
                        </div>
                    </form>
                </div>
                <label for="SaleGoodAllPrice">销售总价:</label><span class="text-danger"></span>
            </div>
            <div class="modal-footer">
                <span class="text-success"></span>
                <button type="button" class="btn btn-default " data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" onclick="Btn_Modal_Sale()">确认</button>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        var quntity = $("#Modal_Sale form input[name='Sale_Quntity']");
        quntity.keyup(function () {

            $('#Modal_Sale .modal-body span:eq(4)').html($('#Modal_Sale .modal-body span:eq(1)').text() * quntity.val());

        });
    })


</script>
